﻿using System;
using System.Text;
using TI_BLE_HCI_ClientLib.BaseEntities;
using TI_BLE_HCI_ClientLib.GenericHCIEntities;
using TI_BLE_HCI_ClientLib.HCIBaseEntities;

namespace TI_BLE_HCI_ClientLib.HCICommands
{
    public class HCICommand_GATT_Exchange_MTU_Response : HCIVendorSpecificCommand
    {
        private const byte CMD = 0x03;

        public HCICommand_GATT_Exchange_MTU_Response(ushort connHandle, ushort serverReceiveMTUSize)
            : base(HCIVendorSpecificCommandCSG.ATT, CMD)
        {
            var pars = new BaseEntityParameter[2];

            pars[0] = new WordParameter(connHandle);
            pars[1] = new WordParameter(serverReceiveMTUSize);
            
            base.addParameters(pars);
        }
    }
}
